<?php

class content_model extends FlexiGrid_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    function get($ID){
        $where=array("ID"=>$ID,"Delete"=>NULL,"Status"=>"Public");
        $query=$this->db->get_where('tbl_content', $where); 
        return $query->result();
    }
    function getByType($type){
        $where=array("Type"=>$type,"Delete"=>NULL,"Status"=>"Public");
        $query=$this->db->get_where('tbl_content', $where); 
        return $query->result();
    }
    
}
?>
